//
// Created by LiuDongPeng on 2024/1/26.
//

#ifndef FOC_BOARD_H
#define FOC_BOARD_H


#include <cstdint>

#include "Stm32Base.h"

#include "main.h"
#include "spi.h"
#include "adc.h"
#include "usart.h"
#include "tim.h"

#include "mt6701.h"
#include "led.h"
#include "button.h"




class Board
{
public:
    Board();
    ~Board() = delete;


    std::tuple<float, float, float> get_phase_current();

    EncoderBase* encoder_;
    Led* led1_, *led2_, *led3_;
    button_t btn1_, btn2_, btn3_, btn4_;

    int iaOffset_, ibOffset_, icOffset_;
};





#endif //FOC_BOARD_H
